﻿define([
    'Xjs/core/util',
    'Xjs/ui/View'
],
function (util, View) {
    'use strict';

    var type = 'field',
    Field = Xjs.getType(type);

    if (Field) { // It has been already loaded
        return Field;
    }

    Field = util.define({
        base: View,
        construct: function (conf, parent) {
            Field.base.constructor.call(this, conf, parent); // Call the base constructor
        },
        type: type,
        tag: 'input',
        requiresId: true

    });

    //Xjs.registerType(Field); abstract

    return Field;
});